


        var reactH = null;
        $(document).ready(function(){
            var thisHref = window.location.href;
            for(var a = 0;a < $('main .page a').length;a++){
                var href = $('main .page a')[a].getAttribute('href');
                if(thisHref.indexOf(href) >= 0){
                    $('main .blog .content .page a:eq(' + a +')').addClass('current');
                    break;
                }
            }
            if(!$('main .page a.current').length){
                $('main .page a:first-child').addClass('current');
            }
            $('main .contn .side .f').click(function(){
                if(window.innerWidth < 768){
                    var This = $(this);
                    var innerH = This.siblings('.mid')[0].children[0].offsetHeight;
                    This.siblings('.mid').height(innerH);
                    if($(this)[0].className.indexOf('active') >= 0){
                        This.siblings('.mid').removeClass('react');
                        This.removeClass('active');
                        reactH = setTimeout(function(){
                            This.siblings('.mid').height('');
                        },10)
                    }else{
                        This.addClass('active');
                        var time = !This.parents('.search').length?810:310;
                        reactH = setTimeout(function(){
                            This.siblings('.mid').addClass('react');
                        },time)
                    }
                }
            })
        })